package org.example.myleet.p541;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("bacdfeg".equals(solution.reverseStr("abcdefg", 2)));
        Assert.isTrue("dcbaefghji".equals(solution.reverseStr("abcdefghij", 4)));
        Assert.isTrue("dcbaefghlkji".equals(solution.reverseStr("abcdefghijkl", 4)));
        Assert.isTrue("dcbaefghlkjim".equals(solution.reverseStr("abcdefghijklm", 4)));
    }
}
